package com.jingdianjichi.auth.application.convert;

import com.jingdianjichi.auth.application.dto.AuthRolePermissionDTO;
import com.jingdianjichi.auth.domain.entity.AuthRolePermissionBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 角色权限关联表DTO的转换
 */
@Mapper
public interface AuthRolePermissionDTOConverter {

    AuthRolePermissionDTOConverter INSTANCE = Mappers.getMapper(AuthRolePermissionDTOConverter.class);


    AuthRolePermissionBO convertDTOtoBo(AuthRolePermissionDTO authRolePermissionDTO);
    AuthRolePermissionDTO convertBotoDTO(AuthRolePermissionBO authRolePermissionBO);
    List<AuthRolePermissionBO>  convertListDTOtoBo(List<AuthRolePermissionBO> authRolePermissionBOS);
}
